package tmproject.hlhj.fhp.cartrans.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import tmproject.hlhj.fhp.cartrans.R
import tmproject.hlhj.fhp.cartrans.javaBean.NoticeListBean

/**
 * Created by Never Fear   on 2018\8\28 0028.
Never More....
 */
class NoticeListAdp(private val datas:ArrayList<NoticeListBean.DataBean.ListBean>)
    :BaseQuickAdapter<NoticeListBean.DataBean.ListBean,BaseViewHolder>(R.layout.notice_fgm_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: NoticeListBean.DataBean.ListBean?) {
        helper?.setText(R.id.itemTv,item?.title)
        helper?.setVisible(R.id.isRead, item?.is_read==0)

    }
}